{
"layer": "top",
"position": "top",

"height": 30,
"width": 1900,
"margin-top": 5,

"modules-left": [
	"custom/menu", "wlr/taskbar"
],

"modules-center": [
	"clock", "custom/weather", "tray"
],

"modules-right": [
	"custom/cmus", "pulseaudio", "cpu", "memory", "custom/power",
],

//-------------LEFT MODULES-------------

"custom/menu": {
	"format": "{icon}",
	"format-icons": " ",
   	"on-click": "set $menu dmenu_path | wofi --show drun -I | xargs swaymsg exec --",
   	"escape": true
},

"wlr/taskbar": {
    "format": "{icon}",
    "icon-size": 18,
    "icon-theme": "Colloid-dark",
    "tooltip-format": "{title}",
    "on-click": "activate",
    "on-click-middle": "close",
    "ignore-list": [
       "Alacritty"
    ],
    "app_ids-mapping": {
      "firefoxdeveloperedition": "firefox-developer-edition"
    }
},


//-------------CENTER MODULES-------------

"clock": {
	"format": "<span color=\"#aaffaa\"></span> {:%H:%M %p}"
},

"custom/weather": {
	"format": "{}",
	"interval": 10,
	"exec": "~/.config/waybar/openweathermap-simple.sh",
},

"tray": {
	"icon-size": 16,
	"spacing": 10
},


//--------------RIGHT MODULES--------------

"custom/cmus": {
	"format": "<span color=\"#aaffaa\"></span> {}",
	"max-length": 45,
	"interval": 10,
	"exec": "cmus-remote -C \"format_print '%F'\"",
	"exec-if": "pgrep cmus",
	"on-click": "cmus-remote -u",
	"on-scroll-up": "cmus-remote --next",
	"on-scroll-down": "cmus-remote --prev",
	"escape": true
},

"pulseaudio": {
	"scroll-step": 5, // %, can be a float
        "format": "<span color=\"#aaffaa\">{icon}</span> {volume}%",
        "format-bluetooth": "{volume}% {icon} {format_source}",
        "format-bluetooth-muted": " {icon} {format_source}",
        "format-muted": " {format_source}",
        "format-source": "{volume}% ",
        "format-source-muted": "",
        "format-icons": {"default": ["", "", ""]},
	"on-click": "pavucontrol"
},

"cpu": {
	"format": "<span color=\"#aaffaa\">Cpu:</span> {usage}%",
	"tooltip": false
},
    
"memory": {
	"format": "<span color=\"#aaffaa\">Mem:</span> {}%"
},

"custom/power": {
	"format": "<span color=\"#aaffaa\">{icon}</span>",
        "format-icons": {"default": [""]},
	"on-click": "/home/owl/.config/wofi/power.sh",
},

"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null"
}
